//
//  VRCalendarTool.h
//  MyDemos
//
//  Created by Veer on 2016/11/2.
//  Copyright © 2016年 veer. All rights reserved.
//  日历处理工具类

#import <Foundation/Foundation.h>

@interface VRCalendarTool : NSObject

/** 获取本周第一天的日期 */
+ (NSDate *)dateForFistDayOnWeek:(NSDate *)date;
/** 获取本周最后一天一天的日期 */
+ (NSDate *)dateForLastDayOnWeek:(NSDate *)date;
/** 获取上周一的日期 */
+ (NSDate *)datePreWeek:(NSDate *)date;
/** 获取下周一的日期 */
+ (NSDate *)dateNextWeek:(NSDate *)date;


// 获取date当前月的第一天是星期几
+ (NSInteger)weekdayOfFirstDayWithDate:(NSDate *)date;

// 获取date当前月的总天数
+ (NSInteger)totalDaysInMonthOfDate:(NSDate *)date;


+ (NSDate *)preMonth:(NSDate *)date;

+ (NSDate *)nextMonth:(NSDate *)date;

+ (NSString *)stringWithDate:(NSDate *)date formatString:(NSString *)formatStr;


@end
